package com.portal.module.notice.entity;

import com.portal.admin.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.portal.admin.utils.excel.annotation.ExcelField;
import java.util.Date;
import java.util.List;

/**
*【通知信息】实体对象
*/

@TableName("notice")
public class Notice extends BaseEntity {
    /*** 主键id */
    private String id;
    /*** 标题图片 */
    private String picture;
    /*** 消息标题 */
    private String title;
    /*** 消息类型 */
    private Integer type;
    /*** 发布时间 */
    private Date publishTime;
    /*** 消息内容 */
    private String content;
    @ExcelField(title="主键id",align=2, sort=0)
    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    @ExcelField(title="标题图片",align=2, sort=1)
    public String getPicture() {
        return this.picture;
    }
    public void setPicture(String picture) {
        this.picture = picture;
    }
    @ExcelField(title="消息标题",align=2, sort=2)
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    @ExcelField(title="消息类型",dictType="notice_type",align=2, sort=3)
    public Integer getType() {
        return this.type;
    }
    public void setType(Integer type) {
        this.type = type;
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ExcelField(title="发布时间",align=2, sort=4)
    public Date getPublishTime() {
        return this.publishTime;
    }
    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }
    @ExcelField(title="消息内容",align=2, sort=5)
    public String getContent() {
        return this.content;
    }
    public void setContent(String content) {
        this.content = content;
    }
}